-
Notifications
You must be signed in to change notification settings - Fork 749
feat(lambda): link for serverlessland and fixes for serverless land #6687
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(lambda): link for serverlessland and fixes for serverless land #6687
Conversation
|
36dc419 to
1010f9c
Compare
packages/core/src/awsService/appBuilder/serverlessLand/webViewManager.ts
Outdated
Show resolved
Hide resolved
1010f9c to
56bc627
Compare
| getLogger().warn('README.md file not found in the project directory') | ||
| return | ||
| } | ||
| await new Promise((resolve) => setTimeout(resolve, 2000)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why do we need a sleep? We also have a sleep util
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We need sleep to give time for README preview to load, so that it opens correctly. I have used sleep util now. Thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
? Use waitUntil to check for the file to exist. sleep() is a poor user experience, and also fragile (some systems could be very slow temporarily, for various reasons).
roger-zhangg
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
would be great if 'Open in Serverless Land' is imported, other LGTM
865094f to
0f856fe
Compare
packages/core/src/awsService/appBuilder/serverlessLand/metadataManager.ts
Outdated
Show resolved
Hide resolved
packages/core/src/awsService/appBuilder/serverlessLand/wizard.ts
Outdated
Show resolved
Hide resolved
6f02177 to
0b04764
Compare
0b04764 to
f63ee4f
Compare
| target: path.join( | ||
| '../../node_modules/aws-core-vscode', | ||
| 'src', | ||
| 'awsService', | ||
| 'appBuilder', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
join() isn't needed here either. I see that you are following the existing pattern of this file, but this file really should be updated.
## Problem This PR adds the functionality to open pattern in serverless-land website. It addresses an issue with the `metadata.json` file path for the extension by specifying the path after the build step in the `copyFile.ts` file. ## Solution Changes: 1. Removed the webview functionality and instead open the browser to preview the patterns. 2. Removed the Github button. 3. Added a link at the bottom of pattern quick pick to explore the [serverless land website](https://serverlessland.com/patterns?services=lambda). 4. Ensured the proper path for the metadata file is accessible and it gets executed properly after the build. 5. Added another entry point at the AWS Explorer high-level, accessible when clicking the three-dot menu.
## Problem This PR adds the functionality to open pattern in serverless-land website. It addresses an issue with the `metadata.json` file path for the extension by specifying the path after the build step in the `copyFile.ts` file. ## Solution Changes: 1. Removed the webview functionality and instead open the browser to preview the patterns. 2. Removed the Github button. 3. Added a link at the bottom of pattern quick pick to explore the [serverless land website](https://serverlessland.com/patterns?services=lambda). 4. Ensured the proper path for the metadata file is accessible and it gets executed properly after the build. 5. Added another entry point at the AWS Explorer high-level, accessible when clicking the three-dot menu.
Problem
This PR adds the functionality to open pattern in serverless-land website. It addresses an issue with the
metadata.jsonfile path for the extension by specifying the path after the build step in thecopyFile.tsfile.Solution
Changes:
feature/xbranches will not be squash-merged at release time.